<?php

class Core_Model_DbTable_Product_Shares extends Core_Model_DbTable_Product_Abstract
{
	const TABLE_NAME                = 'product_shares';
	protected $_name				= self::TABLE_NAME;
    protected $_rowClass            = 'Core_Model_Product_Share';
	
	public function insertProductInfo(Core_Model_Product $product)
	{
		$data = $this->_getParams($product);
		$data['time_shared']		= time();
		$data['number_referers']	= 0;
		return parent::insert($data);
	}
}